﻿using System.Web;
using System.Web.Routing;

namespace Isha.Web.Mvc
{
    public class IshaConstraint : IRouteConstraint
    {
        public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
        {
            return httpContext.Request.Url.AbsolutePath.ToLower().Contains("portal_factory") ? true : false;
        }
    }
}
